package com.huawei.appmarket.service.externalapi.control;

import android.content.Context;
import android.content.Intent;
import com.huawei.secure.android.common.intent.SafeBroadcastReceiver;
import java.lang.ref.WeakReference;
import o.Logger;
import o.dxx;

class HiAppBuoyProtocolChecker$b extends SafeBroadcastReceiver {
    private String ˊ = "";
    private WeakReference<dxx> ˏ;
    final /* synthetic */ HiAppBuoyProtocolChecker ॱ;

    public HiAppBuoyProtocolChecker$b(HiAppBuoyProtocolChecker hiAppBuoyProtocolChecker, dxx o_dxx) {
        this.ॱ = hiAppBuoyProtocolChecker;
        this.ˏ = new WeakReference(o_dxx);
    }

    public void ˎ(String str) {
        this.ˊ = str;
    }

    public void onReceiveMsg(Context context, Intent intent) {
        String action = intent.getAction();
        dxx o_dxx = (dxx) this.ˏ.get();
        Logger.ˏ("HiAppBuoyProtocolChecker", " onReceive tag=" + this.ˊ);
        if (o_dxx != null) {
            String stringExtra = intent.getStringExtra(this.ˊ);
            if (HiAppBuoyProtocolChecker.access$000(this.ˊ, stringExtra)) {
                Logger.ˎ("HiAppBuoyProtocolChecker", "key not equals " + stringExtra);
                return;
            } else if ("com.huawei.appmarket.startup.flow.end".equals(action)) {
                Logger.ˎ("HiAppBuoyProtocolChecker", " FLOW_END ");
                HiAppBuoyProtocolChecker.access$100(this.ॱ);
                HiAppBuoyProtocolChecker.access$200();
                return;
            } else if ("com.huawei.appmarket.startup.flow.interrupt".equals(action)) {
                Logger.ˎ("HiAppBuoyProtocolChecker", " FLOW_INTERRUPT ");
                HiAppBuoyProtocolChecker.access$300(this.ॱ);
                return;
            } else if ("com.huawei.appmarket.startup.flow.error".equals(action)) {
                Logger.ˎ("HiAppBuoyProtocolChecker", " FLOW_ERROR");
                HiAppBuoyProtocolChecker.access$400(this.ॱ);
                return;
            } else {
                return;
            }
        }
        Logger.ˎ("HiAppBuoyProtocolChecker", " onReceive checker is null ");
    }
}
